home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
BASIC
/
FILETEST.BAS
< prev
next >
Wrap
BASIC Source File
|
2000-09-26
|
645b
|
47 lines
$INCLUDE "REGNAMES.INC"
REG %AX,(1*256)+26
CALL INTERRUPT &H0B
o=REG(%DI)
DEF SEG = &HD400
POKE o+0,ASC("M")
POKE o+1,ASC(":")
POKE o+2,ASC("t")
POKE o+3,ASC("d")
POKE o+4,0
REG %BX,2
REG %AX,0*256
?"Call"
CALL INTERRUPT &H49
?"ok"
ok=REG(%AX)
?"Okay=";ok
?"FH=";REG(%BX)
IF ok=10000 THEN
?"Okay !!"
fh=REG(%BX)
for i=o to o+100
poke i,ASC("T")
next
REG %BX,fh
REG %CX,100
REG %AX,3*256
CALL INTERRUPT &H49
le=REG(%BX)
IF le=100 THEN ?"Write Okay" else ?"WRITE ERROR ";le
?"Cl"
REG %BX,fh
REG %AX,1*256
CALL INTERRUPT &H49
?"CLOkay"
ELSE
?"Fehler"
end if
?"<< Taste >>"
end